package myJs.api

import myJs.myPkg.MyFetch
import org.scalajs.dom.window
import upickle.default._
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._
import shared.pojo.Pojo.user._

/**
 * Created by yz on 7/11/2022
 */
object UserApi {

  val baseUrl = s"${Api.apiUrl}/user"

  def reduceTimesNum(request: ReduceTimes.Request) = {
    val url = s"${baseUrl}/reduceTimesNum"
    MyFetch
      .postRnText(
        url = s"${url}",
        data = write(request),
        headers = Map("Content-Type" -> "application/json")
      )
      .map { str => }
  }



}
